import { MutableRefObject } from 'react'
import { IUserItem } from './user'

export type ModelAction = 'create' | 'edit'

export interface IModalProps<T> {
  mRef: MutableRefObject<{ open: (type: ModelAction, data?: T) => void } | undefined>
  update: () => void
}
